package com.example.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@TableName("resource")
@ApiModel("工装信息vo")
@Accessors(chain = true)
public class GongZhuangVo {

    @ApiModelProperty("资源ID")
    @TableId(type = IdType.AUTO)
    private String resourceId;

    @ApiModelProperty("资源类型")
    private String resourceType;

    @ApiModelProperty("资源组ID")
    private String resourceGroupIdIsF;

    @ApiModelProperty("资源组编号")
    private String deviceId;

    @ApiModelProperty("资源组名称")
    private String deviceName;

    @ApiModelProperty("父级资源组ID")
    private String resourceGroupId;

    @ApiModelProperty("父级资源组编号")
    @TableField(exist = false)
    private String resourceGroupNo;

    @ApiModelProperty("父级资源组名称")
    @TableField(exist = false)
    private String resourceGroupName;

    @ApiModelProperty("设备状态")
    @JsonIgnore
    private String deviceStatus;

    @ApiModelProperty("工作状态")
    private String status;

    @ApiModelProperty("上模时间")
    private String macOnTime;

    @ApiModelProperty("上一次保养时间")
    private String maintainTime;

    @ApiModelProperty(value = "所在机器")
    @TableField(exist = false)
    private String macNo;
    @ApiModelProperty(value = "生产的工单(如果有多个，逗号分隔)")
    @TableField(exist = false)
    private String doingWork;
}
